package com.decent.entity.common;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class PageResult implements Serializable {

    private Long total;

    private Integer page;

    private List<?> list;

    private Integer pageSize;

    public PageResult() {
    }

    public PageResult(Long total, List<?> list) {
        this.total = total;
        this.list = list;
    }

    public PageResult(Long total, List<?> list, Integer page) {
        this.total = total;
        this.list = list;
        this.page = page;
    }

}
